package com.aaa.service.impl;

import com.aaa.dao.FsiteMapper;
import com.aaa.entity.Fsite;
import com.aaa.service.FsiteServiceDao;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class FsiteServiceImpl extends ServiceImpl<FsiteMapper, Fsite> implements FsiteServiceDao {
    @Resource
    FsiteMapper mapper;
    @Resource
    FsiteServiceDao dao;
    public List<Fsite> select(Integer fuser){
        return mapper.select(fuser);
    }//查询个人地址
    public boolean upadd(Fsite fsite){
        boolean add=dao.saveOrUpdate(fsite);
        return add;
    }//添加或修改
    public Integer del(Integer id){
        int del=mapper.deleteById(id);
        return del;
    }//删除
}
